package com.icode.dao;

import com.icode.core.model.house.*;
import com.icode.core.model.user.Customer;
import com.icode.core.model.user.User;
import com.icode.core.model.user.UserInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sunk
 * Date: 15-11-7
 * Time: 上午11:09
 * To change this template use File | Settings | File Templates.
 */
public interface RentDao extends EntityDao {
    List<Rent> findMyHouseByStatus(MyHouseStatus toRent,ProductType type);

    List<Rent> findMyHouseByStatusNoType(MyHouseStatus toRent);

    List<Rent> findRentsByStatus( MyHouseStatus status, ProductType houseBase, ProductType apartment);

    List<Rent> findMyHouseByParams( MyHouseStatus status,String area,String week, String price, String theme, ProductType houseBase, ProductType apartment);

    List<Rent> findRentAllByPage(String currentPage, String status);

    List<Rent> findRentForHirer(User user);

    List<Rent> findRentForLessee(User user);

    Rent findRentByMyHouse(MyHouse myHouse);

    List<Rent> findRentByUsername(String username);

    List<Rent> findRentByCustomer(String customer);
}
